package factory.fromKanYun.MultiFactory;

import factory.fromKanYun.Sender;

public class Test {
    public static void main(String[] args) {
        //创建工厂
        SendFactory sendFactory = new SendFactory();
        //生产产品
        Sender sender = sendFactory.produceEmail();
        //发货
        sender.send();

        sender = sendFactory.produceSms();
        sender.send();

    }
}
